Skip to content

Prepare for using SQLite on AWS (backup on S3)#33

Merged
nolan1999 merged 10 commits intomainfrom
local_db
Mar 8, 2026
Merged

Prepare for using SQLite on AWS (backup on S3)#33
nolan1999 merged 10 commits intomainfrom
local_db

Conversation

@nolan1999
Copy link
Member

@nolan1999 nolan1999 commented Feb 6, 2026

Support backup to S3 of local SQLite DB. This allows restarting AppRunner without losing all the data if using SQLite as a database. This will make the stack cheaper, since no RDS is required anymore.

@nolan1999 nolan1999 self-assigned this Feb 6, 2026
@github-actions
Copy link

github-actions bot commented Feb 6, 2026

Coverage

Coverage Report
FileStmtsMissCoverMissing
api
   __init__.py00100% 
   dependencies.py562064%22–29, 40, 44, 76, 99–118, 125–137
   exceptions.py9278%10, 18
   main.py46393%30, 69, 79
   models.py440100% 
   settings.py782371%13–16, 31–32, 68–72, 77, 81, 89, 98–104, 107–112, 115, 124
   tags.py10100% 
api/core
   __init__.py00100% 
   auth.py21576%16, 28–33
   aws.py5180%7
   database.py86891%38–42, 70, 72, 115
   filesystem.py2223385%32, 45, 48, 51, 56, 63, 69, 84, 87, 90, 93, 96, 106, 111, 191, 193–202, 216, 288, 345, 353–365, 376, 404
   notifications.py271352%14, 28–29, 32–52
api/crud
   __init__.py00100% 
   job.py69494%30, 56, 145–146
api/endpoints
   __init__.py00100% 
   auth.py664926%34–73, 83–110, 122–159
   auth_get.py15287%23, 40
   files.py52688%26–27, 44–45, 114, 130
   job_update.py28293%27, 44
   jobs.py37295%24, 94
api/schemas
   __init__.py00100% 
   file.py240100% 
   job.py93496%27, 34, 41, 75
   job_update.py60100% 
   token.py40100% 
   user.py140100% 
TOTAL100317782% 

Tests Skipped Failures Errors Time
194 34 💤 0 ❌ 0 🔥 9m 9s ⏱️

@nolan1999
Copy link
Member Author

Tested on https://github.com/ries-lab/DECODE_Cloud_IntegrationTests/actions/runs/22527070689, ready to merge.

Also backup tested manually by pausing and restarting the AppRunner app.

@nolan1999 nolan1999 merged commit 17cec66 into main Mar 8, 2026
2 checks passed
@nolan1999 nolan1999 deleted the local_db branch March 8, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant